import request from '@/utils/request'

// 查询清扫保洁导入列表
export function listCleaningImportBase(query) {
  return request({
    url: '/standingbook/cleaningImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询清扫保洁导入详细
export function getCleaningImportBase(batchNo) {
  return request({
    url: '/standingbook/cleaningImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增清扫保洁导入
export function addCleaningImportBase(data) {
  return request({
    url: '/standingbook/cleaningImportBase',
    method: 'post',
    data: data
  })
}

// 修改清扫保洁导入
export function updateCleaningImportBase(data) {
  return request({
    url: '/standingbook/cleaningImportBase',
    method: 'put',
    data: data
  })
}

// 删除清扫保洁导入
export function delCleaningImportBase(batchNo) {
  return request({
    url: '/standingbook/cleaningImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/standingbook/cleaningImportBase/importData',
    method: 'post',
    data: data
  })
}
